import 'virtual:uno.css'
import '@unocss/reset/eric-meyer.css'

import './assets/main.css'

import { createApp } from 'vue'
import router from './router'

import 'highlight.js/styles/atom-one-dark.css'
import hljsCommon from 'highlight.js/lib/common'
import hljsVuePlugin from '@highlightjs/vue-plugin'
import * as antdvIcons from '@ant-design/icons-vue'

import App from './App.vue'

const app = createApp(App)
app.use(router)

hljsCommon.highlightAuto('<h1>Highlight.js has been registered successfully!</h1>').value
app.use(hljsVuePlugin)
for (const icon in antdvIcons) {
  app.component(icon, antdvIcons[icon])
}

app.mount('#app')
